package com.hnqcgczy.supplier.dao;

import com.hnqcgczy.supplier.vo.Shareholder;

import java.sql.SQLException;
import java.util.List;

public interface ShareholderDao {
    /**
     * 新增供应商--股东信息
     *
     * @param shareholder
     * @return
     * @throws SQLException
     */
    int add(Shareholder shareholder) throws SQLException;

    /**
     * 修改供应商--股东信息
     *
     * @param shareholder
     * @return
     * @throws SQLException
     */
    int update(Shareholder shareholder) throws SQLException;

    /**
     * 删除供应商--股东信息
     *
     * @param shareholderId
     * @return
     * @throws SQLException
     */
    int delete(Integer shareholderId) throws SQLException;

    /**
     * 查单个供应商--股东信息
     *
     * @param shareholderId
     * @return
     * @throws SQLException
     */
    Shareholder findOne(Integer shareholderId) throws SQLException;

    /**
     * 查询供应商--股东信息
     *
     * @param shareholder
     * @param start
     * @param size
     * @return
     * @throws SQLException
     */
    List<Shareholder> findByLike(Shareholder shareholder, int start, int size) throws SQLException;

    /**
     * 总条数供应商--股东信息
     *
     * @param shareholder
     * @return
     * @throws SQLException
     */
    int totals(Shareholder shareholder) throws SQLException;
}
